package com.hudilao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hudilao.entity.Category;
import com.hudilao.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CategoryMapper extends BaseMapper<Category>{
    /**
     * 根据id查询类别信息
     * @param id 用户id
     * @return Category 类别信息
     */
    @Select("SELECT * FROM category WHERE id = #{id}")
    Category getCategoryById(Long id);
}
